package com.ysd.web.daoimpl;

import com.ysd.web.db.DBManager;
import com.ysd.web.entity.Message;

public class MessageDaolimpl {
	public int addMessage(Message m){
		String sql="insert into message_board(mname,mphone,memail,mcontent,mstate)" +
				"values('"+m.getUsername()+"','"+m.getMphone()+"','"+m.getEmail()+"','"+m.getContent()+"','false')";
			int r=DBManager.executeUpdate(sql);
			return r;
	}
}
